<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" language="javascript" src="/js/player/html5media.min.js"></script>
	<script type="text/javascript" language="javascript" src="/js/jquery-1.6.1.min.js"></script>
	<script type="text/javascript" language="javascript" src="/js/tool.js"></script>
	<title>${play.name} - 琥珀川 · 高清影视网</title>
	<style type="text/css">
		.playVideo{
			width:100%;
			height:100%;
			background-color:black;
		}
	</style>
</head>

<body>
	<div style="height:40px; border-bottom:5px solid #C8C8C8; background-image:url(/image/system/backgroundChange.png); background-color:#E6E6E6;">
		<div style="width:160px;">
			<A href="/index">
				<%--logo图片--%>
				<img src="/image/system/hopochuanLogo.png" style="width:140px; height:40px; border:0px;"/>
			</A>
		</div>
		<div style="margin-top:13px; width:60px;">
			<font style="color:#999; font-size:12px;">电影 >></font>
		</div>
		<div style="margin-top:10px; width:300px;">
			<font style="color:#333; font-size:16px; font-weight:bold;">${play.name}</font>
		</div>
	</div>
	<div id="playDiv">
		<video id="playVideo" class="playVideo" controls autoplay onended="test()">
			<%--poster="http://media.html5media.info/poster.jpg"--%>
			<source src="${play.url}?code=${playCode}" type="video/mp4"/>
		</video>
	</div>
</body>
<%--百度统计代码--%>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F98ec0ac0ed3ccdac7616b9e91d36487e' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
	<%--播放器自动改变大小--%>
	function playAutoChange(){
		<%--获得网页的高度--%>
		var pageHeight = $(window).height();
		
		$("#playDiv").css("height",pageHeight-45);
	}
	
	<%--初始化调用播放器自动改变大小--%>
	playAutoChange();
	
	<%--页面大小改变时--%>
	$(window).resize(function(){
		<%--调用播放器自动改变大小--%>
		playAutoChange();
	});
</script>		
</html>
